﻿using System;
using System.Text;
using IAM.Interface.Model;
using IAM.Interface.IDAL;
using ResponseLocalLibrary;

namespace IAM.Interface.DAL.Response
{
    /// <summary>
    /// 身份信息管理
    /// </summary>
    public class IdentityMgnt : IIdentityMgnt
    {
        Business business = new Business();
        #region  成员方法
        /// <summary>
        /// 创建用户
        /// </summary>
        /// <param name="xmlrequest"></param>
        /// <returns></returns>
        public virtual AccountInfo CreateIdentity(Identity xmlrequest)
        {

            return business.CreateIdentity(xmlrequest);

        }
        /// <summary>
        /// 激活用户
        /// </summary>
        /// <param name="xmlrequest"></param>
        /// <returns></returns>
        public virtual AccountInfo EnableIdentity(Identity xmlrequest)
        {
            return business.EnableIdentity(xmlrequest);
        }
        /// <summary>
        /// 禁用用户
        /// </summary>
        /// <param name="xmlrequest"></param>
        /// <returns></returns>
        public virtual AccountInfo DisableIdentity(Identity xmlrequest)
        {
            return business.DisableIdentity(xmlrequest);
        }
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="xmlrequest"></param>
        /// <returns></returns>
        public virtual AccountInfo DeleteIdentity(Identity xmlrequest)
        {
            return business.DeleteIdentity(xmlrequest);

        }
        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="xmlrequest"></param>
        /// <returns></returns>
        public virtual AccountInfo UpdateIdentity(Identity xmlrequest)
        {
            return business.UpdateIdentity(xmlrequest);
        }
        #endregion  成员方法
    }
}
